package com.zhouxiaoge.source;

import com.zhouxiaoge.ClickSource;
import com.zhouxiaoge.Event;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author 周小哥 gqzmy@163.com 2022/7/21
 */
public class ClickSourceTest {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        DataStreamSource<Event> dataStreamSource = env.addSource(new ClickSource());
        dataStreamSource.print();

        env.execute();
    }
}
